import 'package:flutter/material.dart';
import 'package:thinking/utils/_.dart';
class Split extends StatelessWidget{

  final String splitData;
  final double lineWidth;

  Split({required this.splitData,this.lineWidth:80});

  @override
  Widget build(BuildContext context) {

    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Container(
          color: Colors.grey[300],
          width: Screen.setWidth(lineWidth),
          height: Screen.setHeight(1),
        ),
        SizedBox(
          width: Screen.setWidth(10),
        ),
        Text(
            splitData,
            style: TextStyle(fontSize: 14.0,color: Colors.grey[400])
        ),
        SizedBox(
          width: Screen.setWidth(10),
        ),
        Container(
          color: Colors.grey[300],
          width: Screen.setWidth(lineWidth),
          height: Screen.setHeight(1),
        ),
      ],
    );

  }

}